﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchMerak.aspx.cs" Inherits="CSMF.SearchMerak"  MasterPageFile="CSMF.Master" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>微力十足-海峡两岸微电影大赛</title>
    <meta name="keywords" content="微电影,微电影大赛,海峡两岸微电影大赛,海峡两岸,大赛,福建,旅游,旅行,电影">
    <meta name="description" content="微电影大赛,海峡两岸微电影大赛,旅游微电影大赛,提供微电影投资,微电影管理,微电影演员,微电影拍摄,微电影纪实,微电影造型,微电影后期,微电影播放,微电影发布,微电影搜索,微电影分享。">
    <link rel="shortcut icon" href="csmff.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/style4.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="js/js.js"></script>

    <script type="text/javascript" src="js/swfobject.js"></script>

    <script>
        function setTab(name, cursel, n) {
            for (i = 1; i <= n; i++) {
                var menu = document.getElementById(name + i);
                var con = document.getElementById("con_" + name + "_" + i);
                menu.className = i == cursel ? "hover" : "";
                con.style.display = i == cursel ? "block" : "none";
            }
        }
        //-->
        function Query1() {
            if (event.keyCode == 13) {
                document.getElementById("LinkButton1").click();
                event.returnValue = false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="home-banner">
        <div class="head">
            <img src="imgs/img144.gif" style="margin: 15px 15px;" />
        </div>
        <div id="Tab1">
            <div class="Menubox">
                <ul>
                    <li id="one1" onclick="setTab('one',1,1)" class="hover">搜索结果</li>
                </ul>
                <div class="Menuboxsearch">
                    <asp:TextBox ID="txtSearch" runat="server" CssClass="text"></asp:TextBox><asp:LinkButton
                        ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" onkeydown="Query1();"></asp:LinkButton></div>
            </div>
            <div class="Contentbox">
                <div id="con_one_1" class="hover">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                            <div class="Contentboxsamll">
                                <a href='<%# "MerakDetail.aspx?id=" + Eval("ID") %>'><span>
                                    <img src='<%# "UpLoad/videoImage/" + Eval("Image") %>' width="130px" /></span>
                                    <p>
                                        <%# Eval("Title").ToString().Length > 10 ? Eval("Title").ToString().Substring(0, 9) + "..." : Eval("Title").ToString()%></p>
                                    <p>
                                        得分：<%# GetPoint(Convert.ToInt32(Eval("ID")))%></p>
                                    <p>
                                        点击量：<%# Eval("Count").ToString()%></p>
                                </a>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="pagination">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                        NextPageText="后页" PrevPageText="前页" ShowPageIndexBox="Never" HorizontalAlign="Right"
                        CssClass="anpager" CurrentPageButtonClass="cpb" OnPageChanging="AspNetPager1_PageChanging"
                        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条  共<span style='color:red'>%RecordCount%</span>条记录"
                        CustomInfoTextAlign="Right">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </div>
    </div>
</asp:Content>
